package com.common;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BeanFactory {
	private static ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
	public final static Object getBean(String bean){
		return ctx.getBean(bean);
	}
}
